﻿@model Titul.Help.Models.Version
@{
    ViewBag.Title = "Редактирование версий";
    Layout = MVC.Shared.Views._Layout;
}

<h2>@ViewBag.Title</h2>
@using (Html.BeginForm(MVC.Versions.Edit(), FormMethod.Post, new { @class = "form" }))
{
    @Html.AntiForgeryToken()
    
    @Html.HiddenFor(x=>x.ProductSeoUrl)
    
    <div class="form-group">
        @Html.LabelFor(x => x.Number)
        @Html.EditorFor(x => x.Number, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(x => x.Number)
    </div>

    <div class="form-group">
        @Html.LabelFor(x => x.Html)
        @Html.EditorFor(x => x.Html, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(x => x.Html)
    </div>

    <div class="form-group">
        @Html.LabelFor(x => x.SeoUrl)
        @Html.EditorFor(x => x.SeoUrl, new { htmlAttributes = new { @class = "form-control" } })
        @Html.ValidationMessageFor(x => x.SeoUrl)
    </div>
    
    <div class="btn-group pull-right">
        <button type="submit" class="btn btn-default">Применить</button>
    </div>
}
@section scripts{
    @Scripts.Render("~/bundles/ckeditor")
    <script type="text/javascript">
        CKEDITOR.replaceAll();
    </script>
}